# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=blur-effect
pkgver=1.1.3
pkgrel=2
pkgdesc='Off-screen image blurring utility using OpenGL ES 3.0'
arch=('loong64' 'x86_64')
url="https://github.com/sonald/blur-effect"
license=('GPL3')
depends=('gdk-pixbuf2' 'mesa' 'libegl' 'libgles')
makedepends=('git' 'cmake')
source=("git+https://github.com/sonald/blur-effect.git#tag=$pkgver")
sha512sums=('SKIP')

prepare() {
  mkdir build
}

build() {
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../$pkgname
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
}
